export function from<T>(clazz: { new (): T }, data: any) {
  let model = new clazz()
  Object.assign(model, data)
  return model
}
